package cn.engage.ekcc.exception;

import lombok.Data;

@Data
public class GobalException extends RuntimeException{
    private String errorCode;

    public GobalException() {
    }

    public GobalException(String message) {
        super(message);
    }

    public GobalException(String message,String errorCode) {
        super(message);
        this.errorCode = errorCode;
    }

    public GobalException(GlobalExceptionEnum exceptionEnum) {
        super(exceptionEnum.getMessage());
        this.errorCode = exceptionEnum.getCode();
    }



}
